import {Entity, PrimaryGeneratedColumn, Column, ManyToMany, JoinTable, ManyToOne} from "typeorm/browser";

export interface Task {

  id: number;

  title: string;

  order: number;

  done: boolean;

  createTime: number;

}

@Entity('task')
export class TaskEntity implements Task{
  @PrimaryGeneratedColumn()
  id: number;
  @Column()
  createTime: number;
  @Column()
  done: boolean;
  @Column()
  order: number;
  @Column()
  title: string;

}
